//
//  PublicDefine.h
//  MaMiProject
//
//  Created by 李家瑞 on 16/3/15.
//  Copyright © 2016年 lijiarui. All rights reserved.
//

#define APPShare ((AppDelegate*)[[UIApplication sharedApplication] delegate])

//高
#define APPScreenHeight [[UIScreen mainScreen] bounds].size.height
//宽
#define APPScreenWidth [[UIScreen mainScreen] bounds].size.width

//读取UserDefault
#define fLoadUserDefault(key)[[NSUserDefaults standardUserDefaults] objectForKey:(key)]


//服务器地址开头
#define PUBLIC_SERVER_IP  @"https://api.mmjihua.com/mami/mamisrv"


//文档路径
#define DOCUMENT_PATH [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES) objectAtIndex:0]
//大文件存放路径
#define LIBRARY_PATH [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,NSUserDomainMask,YES) objectAtIndex:0]
//缓存文件路径
#define CACHES_PATH [NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUserDomainMask,YES) objectAtIndex:0]



//===================系统颜色定义.Start===============//
#define APPBackgroundColor @"f2f2f2"  //背景
//===================系统颜色定义.End===============//

//代替Nslog，不占资源
//=============重置DEBUG.Start===============//
#define CC_DEBUG
#ifdef CC_DEBUG
#define ccLog(...) NSLog(__VA_ARGS__)
#endif
//=============重置DEBUG.End===============//